package com.wt.easyadmin.model.bar;

import java.math.BigDecimal;

public class ProfitVo {
	
	//已提现
	private BigDecimal cashOut = new BigDecimal(0);
	//已结算金额
	private BigDecimal settled = new BigDecimal(0);
	//待结算金额
	private BigDecimal toBeSettle = new BigDecimal(0);
	//可提现金额
	private BigDecimal canCashOut = new BigDecimal(0);
	
	private BigDecimal income = new BigDecimal(0);

	
	public BigDecimal getIncome() {
		return income;
	}
	public void setIncome(BigDecimal income) {
		this.income = income;
	}
	public BigDecimal getCashOut() {
		return cashOut;
	}
	public void setCashOut(BigDecimal cashOut) {
		if(this.settled!=null&&cashOut!=null) {
			this.canCashOut= this.settled.subtract(cashOut);
		}
		this.cashOut = cashOut;
	}
	public BigDecimal getSettled() {
		return settled;
	}
	public void setSettled(BigDecimal settled) {
		this.income=this.toBeSettle.add(settled);
		
		if(settled!=null&&this.cashOut!=null) {
			this.canCashOut= settled.subtract(this.cashOut);
		}
		this.settled = settled;
	}
	public BigDecimal getToBeSettle() {
		return toBeSettle;
	}
	public void setToBeSettle(BigDecimal toBeSettle) {
		this.income = toBeSettle.add(this.settled);
		this.toBeSettle = toBeSettle;
	}
	public BigDecimal getCanCashOut() {
		return canCashOut;
	}
	public void setCanCashOut(BigDecimal canCashOut) {
		this.canCashOut = canCashOut;
	}

	
	
}
